<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" import="java.util.*" %>
<%@ page session="true" %>  

<html>
<head>
	<link rel="stylesheet" type="text/css" href="mystyle.css" />
	<meta http-equiv="Content-Type" content="text/html; charset=Cp1252"/>
	<title>Cadastrar Usu&aacute;rio</title>
</head>
<body>
	
	
	<div class="cadastro">
		
		<h3>CADASTRAR USU&Aacute;RIO</h3>
		<hr>
		
		<ul id="menu-css">	
			<li><a href="cadastrar-editora.jsp">Cadastrar Editora</a></li>
			<li><a href="cadastrar-livro.jsp">Cadastrar Livro</a></li>
			<li><a href="cadastrar-edicao.jsp">Cadastrar Edi&ccedil;&atilde;o</a></li>
			<li><a href="emprestimo.jsp">Empr&eacute;stimo</a></li>
			<li><a href="devolucao.jsp">Devolu&ccedil;&atilde;o</a></li>
		</ul>
		
		<% ArrayList<String> mensagens = (ArrayList<String>) session.getAttribute("erro");
			if (mensagens != null){
				for (String mensagem : mensagens){%>
		     	   	<%=mensagem.toString()%>
		     	   	<br/>
			        <%}
			    mensagens.clear();
			    session.setAttribute("erro", mensagens); 
		        
	        }%>
		<br/>	
		<form method="POST" action="/Livraria/livraria">
			Nome  :  <input type="text" name="nome" /><br/><br/>
			Senha  :  <input type="text" name="senha" /><br/><br/>
			Cargo :<select name="cargo">
					<option value="1">vendedor</option>
					<option value="2">cliente</option>
					<option value="3">admin</option>
				</select><br/><br/>
			<input style="width:100;height:25" type="submit" value="Enviar" />
			<input size="3" type="hidden" name="corrente" value="1">
		</form>
		<form method="POST" action="/Livraria/livraria">
			<input style="width:100;height:25"  type="submit" value="Consultar" />
			<input size="3" type="hidden" name="corrente" value="2">
		</form>
		<hr>
	</div>
	
</body>
</html>
